import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'Index',
      component: () => import("@/views/user/index"),
      children: [
        {
          path: '/dao/:modelName',
          name: 'Dao',
          component: () => import("@/views/user/dao/index.vue"),
        },
        {
          path: '/session/listdao/:sid',
          name: 'SessionDetail',
          component: () => import("@/views/user/dao/index.vue")
        },
        {
          path: '/allsessions',
          name: 'AllSession',
          component: () => import("@/views/user/sessions")
        },
        {
          path: '/setting',
          name: 'Setting',
          component: () => import("@/views/user/setting")
        },

      ]
    },

  ],
})

export default router
